package com.yonyou.pmclouds.safetypatrol.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @author 徐老板
 * @date 2020/4/15   16:08
 */
@Data
@Table(name = "pmbd_safetypatrol")
public class SafetypatrolVO extends SuperVO {



    @Id
    @Column(name = "pk_safetypatrol")
    private String pkSafetypatrol;
    @Column(name="creator",updatable=false)
    private String creator;
    @Column(name="creationtime",updatable=false)
    private Date creationtime;
    private String modifier;
    private Date modifytime;
    @Column(name="pk_tenant",updatable=false)
    private String pkTenant;
    //安全标准
    @Size(max = 50)
    @NotNull
    @Column(name="standard_name",updatable=false)
    private String standardName;
    //安全类型
    private byte standardType;
    /**
     * 启用状态（0：停用，1：启用）
     */
    private byte stateCode;
    //单据类型
    @Transient
    private String bill_type;

    @Transient
    private SafetypatrolDetailVO[] safeDetailVOS;
    //页面显示类型名字
    @Transient
    private String standardtypename;

    public String getPkSafetypatrol() {
        return pkSafetypatrol;
    }


//    @Transient
//    private String key;
//
//    public String getKey() {
//        return pkSafetypatrol;
//    }

    @Transient
    private boolean used;

    @Transient
    private Integer detailcount;

}
